package com.vt.admin.api.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * 角色
 */
@Data
@Accessors(chain = true)
public class SysRole extends Model<SysRole> {
    @TableId(value = "id", type = IdType.ID_WORKER_STR)
    private String id;

    @ApiModelProperty("所属管理公司(组织表管理公司id)")
    private String companyId;

    @ApiModelProperty("角色名称")
    private String name;

    @ApiModelProperty("启用状态(0-禁用，1-启用)")
    private Integer enableStatus;

    @ApiModelProperty("备注")
    private String remark;

    private String creater;

    private String updater;

    private Date createTime;

    private Date updateTime;

    @TableLogic
    private Integer status;
}
